#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QString>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_clicked()
{
    QString content1 = this->ui->lineEdit->text();
    QString content2 = this->ui->lineEdit_2->text();
    int contentInt = content1.toInt() + content2.toInt();
    QString newContent = QString::number(contentInt);
    this->ui->label->setText(newContent);
}
